
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[spOwner_GetOwner]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[spOwner_GetOwner]
GO

GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Eric Liew
-- Create date: 6/2/2009
-- Description:	Get a Owner
-- =============================================
CREATE PROCEDURE [dbo].[spOwner_GetOwner]
{
		@OwnerID INT	
}
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;


	SELECT 
		OwnerId,
		CompanyName,
		Title,
		FirstName,
		LastName,
		Street1,
		Street2,
		Suburb,
		State,
		Postcode,
		Phone,
		Mobile,
		ABN,
	FROM Owner
	Where OwnerId = @OwnerID
 

END
GO
